package com.myqm.util.gateway;

import java.sql.Timestamp;

public class ServiceInfo { 
    String id; 
    Timestamp created_at; 
    Timestamp updated_at; 
    Integer connect_timeout;  //The timeout in milliseconds for establishing a connection to the upstream server. Defaults to 60000.

    String protocol; //The protocol used to communicate with the upstream. It can be one of http (default) or https
    String host;  //The host of the upstream server.
    Integer port; //The upstream server port. Defaults to 80.
    String path; //The path to be used in requests to the upstream server. Empty by default.
    String name;  //The Service name
    Integer retries;  //The number of retries to execute upon failure to proxy. The default is 5.
    Integer read_timeout; //The timeout in milliseconds between two successive write operations for transmitting a request to the upstream server. Defaults to 60000.

    Integer write_timeout;//The timeout in milliseconds between two successive read operations for transmitting a request to the upstream server. Defaults to 60000.
	String url;//shorthand-attribute	Shorthand attribute to set protocol, host, port and path at once. This attribute is write-only (the Admin API never "returns" the url).
	  
	
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Timestamp getCreated_at() {
		return created_at;
	}
	public void setCreated_at(Timestamp created_at) {
		this.created_at = created_at;
	}
	public Timestamp getUpdated_at() {
		return updated_at;
	}
	public void setUpdated_at(Timestamp updated_at) {
		this.updated_at = updated_at;
	}
	public Integer getConnect_timeout() {
		return connect_timeout;
	}
	public void setConnect_timeout(Integer connect_timeout) {
		this.connect_timeout = connect_timeout;
	}
	public String getProtocol() {
		return protocol;
	}
	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}
	public String getHost() {
		return host;
	}
	public void setHost(String host) {
		this.host = host;
	}
	public Integer getPort() {
		return port;
	}
	public void setPort(Integer port) {
		this.port = port;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getRetries() {
		return retries;
	}
	public void setRetries(Integer retries) {
		this.retries = retries;
	}
	public Integer getRead_timeout() {
		return read_timeout;
	}
	public void setRead_timeout(Integer read_timeout) {
		this.read_timeout = read_timeout;
	}
	public Integer getWrite_timeout() {
		return write_timeout;
	}
	public void setWrite_timeout(Integer write_timeout) {
		this.write_timeout = write_timeout;
	}  
}
